package com.xingxue.mapper;

import java.util.List;

import com.xingxue.entity.Product;
import com.xingxue.entity.vo.ProductVo;
import org.apache.ibatis.annotations.*;

public interface ProductMapper {

    void save(Product product);
    
    void update(Product product);
    
    void deleteById(long id);
    
    void deleteByIds(List<java.lang.Long> id);
    
    Product findById(long id);
    
    List<Product> findByCategoryId(int categoryId);
    
    List<Product> findAll();

    int findCount();

    List<Product> findByVo(ProductVo vo);
    
    int findCountByVo(ProductVo vo);

}